package com.heima.apis.admin;

import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * @author zhanghao
 * @date 2021/4/9 16:57
 */
@Api(value = "频道管理", tags = "channel", description = "频道管理Api")
public interface ChannelControllerApi {
    //根据名称分页查询频道
    @ApiOperation("频道分页列表查询")
    public ResponseResult findByNameAndPage(ChannelDto dto);

    //频道新增
    @ApiOperation("频道新增")
    public ResponseResult insert(AdChannel adChannel);

    //频道修改
    @ApiOperation("频道修改")
    public ResponseResult update(AdChannel adChannel);

    //频道删除
    @ApiOperation("频道删除")
    public ResponseResult deleteById(Integer id);

    /**
     * 查询所有频道
     * @return
     */
    public ResponseResult findAll();
}
